<%@ page contentType="text/html;charset=utf-8" language="java"
	pageEncoding="UTF-8" import="java.util.Date"%>
<%@include file="../../common/mastertop.jsp"%>
<p class="page-title">
    <i class="locale-icon"></i>
    <span>当前位置 : </span>
    <span class="cur-page-title">基础档案</span>
    <span>· 参数设置</span>
</p>
<div style="min-height:100%" class="c-fff">
<div class="form-horizontal pt-15  form-clean-magin c-fff" >
	<div class="form-group">
		<label for="inputEmail3"
			class="col-xs-3 text-right control-label usual-label">历史月均销量，基于历史</label>
		<div class="col-xs-9">
			<input class="form-control form-control-260 pull-left"
				type="text" id="hisSale" maxlength="100" type="text"  value="${model.hisSale}" >
			<i class="plum-sign-right">个月</i>
		</div>
	</div>
	
	<div class="form-group">
		<label for="inputEmail3"
			class="col-xs-3 text-right control-label usual-label">重点商品常备安全库存系数</label>
		<div class="col-xs-9">
			<input class="form-control form-control-260 pull-left"
				type="text" id="keyPointItemSafeInventory" maxlength="100" type="text"  value="${model.keyPointItemSafeInventory}" >
			<i class="plum-sign-right"></i>
		</div>
	</div>
	
	<div class="form-group">
		<label for="inputEmail3"
			class="col-xs-3 text-right control-label usual-label">非重点商品常备安全库存系数</label>
		<div class="col-xs-9">
			<input class="form-control form-control-260 pull-left"
				type="text" id="commonItemSafeInventory" maxlength="100" type="text" value="${model.commonItemSafeInventory}" >
			<i class="plum-sign-right"></i>
		</div>
	</div>
	
	<div class="form-group">
		<label for="inputEmail3"
			class="col-xs-3 text-right control-label usual-label">常备安全库存基于未来</label>
		<div class="col-xs-9">
			<input class="form-control form-control-260 pull-left"
				type="text" id="safeInventoryFuture" maxlength="100" type="text" value="${model.safeInventoryFuture}" >
			<i class="plum-sign-right">个月平均销量预估</i>
		</div>
	</div>
	
	<div class="form-group">
		<label for="inputEmail3"
			class="col-xs-3 text-right control-label usual-label">预估订单风险评估基于未来</label>
		<div class="col-xs-9">
			<input class="form-control form-control-260 pull-left"
				type="text" id="orderSafe" maxlength="100" type="text" value="${model.orderSafe}" >
			<i class="plum-sign-right">个月销量预估</i>
		</div>
	</div>
	
	
</div>
<div class="form-group">
<label for="inputEmail3"
			class="col-xs-3 text-right control-label usual-label">&nbsp</label>
			<div class="col-xs-9">
	<button type="button" class="runmi-btn runmi-sure-btn"
		onclick="modifyPwd()">保存</button>
		</div>
</div>
</div>

<script type="text/javascript">
var flag=false;
function modifyPwd() {
	
    var hisSale = $('#hisSale').val();
    var  parama =  "hisSale=" + hisSale;
    parama = parama +  "&keyPointItemSafeInventory=" + $('#keyPointItemSafeInventory').val();
    parama = parama +  "&commonItemSafeInventory=" + $('#commonItemSafeInventory').val();
    parama = parama +  "&safeInventoryFuture=" + $('#safeInventoryFuture').val();
    parama = parama +  "&orderSafe=" + $('#orderSafe').val();
    
   /// alert(parama);
   layer.load(1, {shade: [0.5,'#fff']});
    var url = "updateParameterSet";
    $.ajax({
        type: "POST",
        url: url,
        data: parama,
        contentType: "application/x-www-form-urlencoded;charset=UTF-8",
        async: true,
        dataType: 'json',
        error: function (datas) {
         	layer.closeAll();
        },
        success: function (resultdata) {
        	layer.closeAll();
        	if(resultdata.returnCode=="0000"){     
            	layer.alert('设置成功');

               
            } else {
            	layer.alert(resultdata.returnMessage);
            }
        
        }
    });
}

</script>
<%@include file="../../common/masterbottom.jsp"%>
